#include "std_libs.h"
#include "Parser.h"
#include "Token.h"
#include "Tag.h"
#include "Num.h"
#include "Word.h"
#include "Lexer.h"
#include<fstream>
#include<typeinfo>

int main(int argc, char* argv[])
{
	Lexer lexer;
	//ifstream infile("Test.cpp");
	lexer.in = &cin;//&infile;
	int a = 8;
	while(true)
	{
		Token *t = lexer.scan();
		if(t == NULL)
		{
			cout<<"at file end"<<endl;
			break;
		}
		cout<<"type is:"<<typeid(*t).name()<<endl;
	}
	//test.cpp
	/*while(true)
	{
		Parser p;
		if(Parser::lookahead == 'q')
		{
			break;
		}
		cout<<"Result:"<<p.expr()<<endl;
		cout<<"new cin"<<endl;
	}*/
	return 0;
}

